
package gov.chinatax.ctcps.generator.form;

import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for xtglDwjbxx.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="xtglDwjbxxForm"
 */
public class XtglDwjbxxForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _dwbh = null;
   private java.lang.String _dwysm = null;
   private java.lang.String _dwmc = null;
   private java.lang.String _dwjc = null;
   private java.lang.String _gbm = null;
   private java.lang.String _ysjcDm = null;
   private java.lang.String _sjdwbh = null;
   private java.lang.String _xzqhDm = null;
   private java.lang.String _dwdz = null;
   private java.lang.String _yzbm = null;
   private java.lang.String _dwfzr = null;
   private java.lang.String _shr = null;
   private java.lang.String _cwfzr = null;
   private java.lang.String _cwfzrDh = null;
   private java.lang.String _dwlxr = null;
   private java.lang.String _dwlxrDh = null;
   private java.lang.String _zhmc = null;
   private java.lang.String _khyh = null;
   private java.lang.String _lyezh = null;
   private java.lang.String _dwjbjg = null;
   private java.lang.String _yhkhsqjbr = null;
   private java.lang.String _khsqjbrDh = null;
   private java.lang.String _bz = null;
   private java.lang.String _dwztBt = null;
   private java.lang.String _xtdwBz = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   private java.lang.String _ybazhxz = null;
   private java.lang.String _sfybrmyhba= null;
   private java.lang.String _ysbzxtYsm = null;
   private java.lang.String _ysbzxtGbm = null;
   private java.lang.String _xgzfzbBz = null;
   private java.lang.String _yhlx = null;
   
   
   
    public java.lang.String getYhlx() {
	return _yhlx;
	}
	public void setYhlx(java.lang.String _yhlx) {
		this._yhlx = _yhlx;
	}
/**
    * Standard constructor.
    */
   public XtglDwjbxxForm() {
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the dwysm
    *
    * @return the dwysm
    */
   public java.lang.String getDwysm() {
      return _dwysm;
   }

   /**
    * Sets the dwysm
    *
    * @param dwysm the new dwysm value
    */
   public void setDwysm(java.lang.String dwysm) {
      _dwysm = dwysm;
   }
   /**
    * Returns the dwmc
    *
    * @return the dwmc
    */
   public java.lang.String getDwmc() {
      return _dwmc;
   }

   /**
    * Sets the dwmc
    *
    * @param dwmc the new dwmc value
    */
   public void setDwmc(java.lang.String dwmc) {
      _dwmc = dwmc;
   }
   /**
    * Returns the dwjc
    *
    * @return the dwjc
    */
   public java.lang.String getDwjc() {
      return _dwjc;
   }

   /**
    * Sets the dwjc
    *
    * @param dwjc the new dwjc value
    */
   public void setDwjc(java.lang.String dwjc) {
      _dwjc = dwjc;
   }
   /**
    * Returns the gbm
    *
    * @return the gbm
    */
   public java.lang.String getGbm() {
      return _gbm;
   }

   /**
    * Sets the gbm
    *
    * @param gbm the new gbm value
    */
   public void setGbm(java.lang.String gbm) {
      _gbm = gbm;
   }
   /**
    * Returns the ysjcDm
    *
    * @return the ysjcDm
    */
   public java.lang.String getYsjcDm() {
      return _ysjcDm;
   }

   /**
    * Sets the ysjcDm
    *
    * @param ysjcDm the new ysjcDm value
    */
   public void setYsjcDm(java.lang.String ysjcDm) {
      _ysjcDm = ysjcDm;
   }
   /**
    * Returns the sjdwbh
    *
    * @return the sjdwbh
    */
   public java.lang.String getSjdwbh() {
      return _sjdwbh;
   }

   /**
    * Sets the sjdwbh
    *
    * @param sjdwbh the new sjdwbh value
    */
   public void setSjdwbh(java.lang.String sjdwbh) {
      _sjdwbh = sjdwbh;
   }
   /**
    * Returns the xzqhDm
    *
    * @return the xzqhDm
    */
   public java.lang.String getXzqhDm() {
      return _xzqhDm;
   }

   /**
    * Sets the xzqhDm
    *
    * @param xzqhDm the new xzqhDm value
    */
   public void setXzqhDm(java.lang.String xzqhDm) {
      _xzqhDm = xzqhDm;
   }
   /**
    * Returns the dwdz
    *
    * @return the dwdz
    */
   public java.lang.String getDwdz() {
      return _dwdz;
   }

   /**
    * Sets the dwdz
    *
    * @param dwdz the new dwdz value
    */
   public void setDwdz(java.lang.String dwdz) {
      _dwdz = dwdz;
   }
   /**
    * Returns the yzbm
    *
    * @return the yzbm
    */
   public java.lang.String getYzbm() {
      return _yzbm;
   }

   /**
    * Sets the yzbm
    *
    * @param yzbm the new yzbm value
    */
   public void setYzbm(java.lang.String yzbm) {
      _yzbm = yzbm;
   }
   /**
    * Returns the dwfzr
    *
    * @return the dwfzr
    */
   public java.lang.String getDwfzr() {
      return _dwfzr;
   }

   /**
    * Sets the dwfzr
    *
    * @param dwfzr the new dwfzr value
    */
   public void setDwfzr(java.lang.String dwfzr) {
      _dwfzr = dwfzr;
   }
   /**
    * Returns the shr
    *
    * @return the shr
    */
   public java.lang.String getShr() {
      return _shr;
   }

   /**
    * Sets the shr
    *
    * @param shr the new shr value
    */
   public void setShr(java.lang.String shr) {
      _shr = shr;
   }
   /**
    * Returns the cwfzr
    *
    * @return the cwfzr
    */
   public java.lang.String getCwfzr() {
      return _cwfzr;
   }

   /**
    * Sets the cwfzr
    *
    * @param cwfzr the new cwfzr value
    */
   public void setCwfzr(java.lang.String cwfzr) {
      _cwfzr = cwfzr;
   }
   /**
    * Returns the cwfzrDh
    *
    * @return the cwfzrDh
    */
   public java.lang.String getCwfzrDh() {
      return _cwfzrDh;
   }

   /**
    * Sets the cwfzrDh
    *
    * @param cwfzrDh the new cwfzrDh value
    */
   public void setCwfzrDh(java.lang.String cwfzrDh) {
      _cwfzrDh = cwfzrDh;
   }
   /**
    * Returns the dwlxr
    *
    * @return the dwlxr
    */
   public java.lang.String getDwlxr() {
      return _dwlxr;
   }

   /**
    * Sets the dwlxr
    *
    * @param dwlxr the new dwlxr value
    */
   public void setDwlxr(java.lang.String dwlxr) {
      _dwlxr = dwlxr;
   }
   /**
    * Returns the dwlxrDh
    *
    * @return the dwlxrDh
    */
   public java.lang.String getDwlxrDh() {
      return _dwlxrDh;
   }

   /**
    * Sets the dwlxrDh
    *
    * @param dwlxrDh the new dwlxrDh value
    */
   public void setDwlxrDh(java.lang.String dwlxrDh) {
      _dwlxrDh = dwlxrDh;
   }
   /**
    * Returns the zhmc
    *
    * @return the zhmc
    */
   public java.lang.String getZhmc() {
      return _zhmc;
   }

   /**
    * Sets the zhmc
    *
    * @param zhmc the new zhmc value
    */
   public void setZhmc(java.lang.String zhmc) {
      _zhmc = zhmc;
   }
   /**
    * Returns the khyh
    *
    * @return the khyh
    */
   public java.lang.String getKhyh() {
      return _khyh;
   }

   /**
    * Sets the khyh
    *
    * @param khyh the new khyh value
    */
   public void setKhyh(java.lang.String khyh) {
      _khyh = khyh;
   }
   /**
    * Returns the lyezh
    *
    * @return the lyezh
    */
   public java.lang.String getLyezh() {
      return _lyezh;
   }

   /**
    * Sets the lyezh
    *
    * @param lyezh the new lyezh value
    */
   public void setLyezh(java.lang.String lyezh) {
      _lyezh = lyezh;
   }
   /**
    * Returns the dwjbjg
    *
    * @return the dwjbjg
    */
   public java.lang.String getDwjbjg() {
      return _dwjbjg;
   }

   /**
    * Sets the dwjbjg
    *
    * @param dwjbjg the new dwjbjg value
    */
   public void setDwjbjg(java.lang.String dwjbjg) {
      _dwjbjg = dwjbjg;
   }
   /**
    * Returns the yhkhsqjbr
    *
    * @return the yhkhsqjbr
    */
   public java.lang.String getYhkhsqjbr() {
      return _yhkhsqjbr;
   }

   /**
    * Sets the yhkhsqjbr
    *
    * @param yhkhsqjbr the new yhkhsqjbr value
    */
   public void setYhkhsqjbr(java.lang.String yhkhsqjbr) {
      _yhkhsqjbr = yhkhsqjbr;
   }
   /**
    * Returns the khsqjbrDh
    *
    * @return the khsqjbrDh
    */
   public java.lang.String getKhsqjbrDh() {
      return _khsqjbrDh;
   }

   /**
    * Sets the khsqjbrDh
    *
    * @param khsqjbrDh the new khsqjbrDh value
    */
   public void setKhsqjbrDh(java.lang.String khsqjbrDh) {
      _khsqjbrDh = khsqjbrDh;
   }
   /**
    * Returns the bz
    *
    * @return the bz
    */
   public java.lang.String getBz() {
      return _bz;
   }

   /**
    * Sets the bz
    *
    * @param bz the new bz value
    */
   public void setBz(java.lang.String bz) {
      _bz = bz;
   }
   /**
    * Returns the dwztBt
    *
    * @return the dwztBt
    */
   public java.lang.String getDwztBt() {
      return _dwztBt;
   }

   /**
    * Sets the dwztBt
    *
    * @param dwztBt the new dwztBt value
    */
   public void setDwztBt(java.lang.String dwztBt) {
      _dwztBt = dwztBt;
   }
   /**
    * Returns the xtdwBz
    *
    * @return the xtdwBz
    */
   public java.lang.String getXtdwBz() {
      return _xtdwBz;
   }

   /**
    * Sets the xtdwBz
    *
    * @param xtdwBz the new xtdwBz value
    */
   public void setXtdwBz(java.lang.String xtdwBz) {
      _xtdwBz = xtdwBz;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }
   /**
    * Returns the ybazhxz
    *
    * @return the ybazhxz
    */
   public java.lang.String getYbazhxz() {
      return _ybazhxz;
   }

   /**
    * Sets the ybazhxz
    *
    * @param ybazhxz the new ybazhxz value
    */
   public void setYbazhxz(java.lang.String ybazhxz) {
      _ybazhxz = ybazhxz;
   }
   /**
    * Returns the sfybrmyhba
    *
    * @return the sfybrmyhba
    */
   public java.lang.String getSfybrmyhba() {
      return _sfybrmyhba;
   }

   /**
    * Sets the sfybrmyhba
    *
    * @param sfybrmyhba the new sfybrmyhba value
    */
   public void setSfybrmyhba(java.lang.String sfybrmyhba) {
	   _sfybrmyhba = sfybrmyhba;
   }
   /**
    * Returns the ysbzxtYsm
    *
    * @return the ysbzxtYsm
    */
   public java.lang.String getYsbzxtYsm() {
      return _ysbzxtYsm;
   }

   /**
    * Sets the ysbzxtYsm
    *
    * @param ysbzxtYsm the new ysbzxtYsm value
    */
   public void setYsbzxtYsm(java.lang.String ysbzxtYsm) {
      _ysbzxtYsm = ysbzxtYsm;
   }
   /**
    * Returns the ysbzxtGbm
    *
    * @return the ysbzxtGbm
    */
   public java.lang.String getYsbzxtGbm() {
      return _ysbzxtGbm;
   }

   /**
    * Sets the ysbzxtGbm
    *
    * @param ysbzxtGbm the new ysbzxtGbm value
    */
   public void setYsbzxtGbm(java.lang.String ysbzxtGbm) {
      _ysbzxtGbm = ysbzxtGbm;
   }
   
   public java.lang.String getXgzfzbBz() {
		return _xgzfzbBz;
	}

	public void setXgzfzbBz(java.lang.String xgzfzbBz) {
		this._xgzfzbBz = xgzfzbBz;
	}


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      if(getDwysm() == null) {
         errors.add("dwysm", new ActionError("error.dwysm.required"));
      }
      if(getDwmc() == null) {
         errors.add("dwmc", new ActionError("error.dwmc.required"));
      }
      if(getYsjcDm() == null) {
         errors.add("ysjcDm", new ActionError("error.ysjcDm.required"));
      }
      // TODO test format/data
      return errors;
   }
}
